package com.scau.ums.service;

import com.scau.ums.model.Maintainer;
import com.scau.ums.model.Student;
import com.scau.ums.model.Teacher;
import org.springframework.dao.DuplicateKeyException;

import java.sql.SQLException;

/**
 * @author xfy
 * @version 1.0
 * @date 2019/7/23 9:57
 */

public interface AddUserService {
    public int addStudent(Student student) throws SQLException,DuplicateKeyException;
    public int addTeacher(Teacher teacher) throws SQLException,DuplicateKeyException;
    public int addMaintainer(Maintainer maintainer) throws SQLException,DuplicateKeyException;
}
